import Vue from 'vue'
import App from './App.vue'
// import router from './router'
import store from './store'
import axios from 'axios'
import VueAxios from 'vue-axios'
import qs from 'qs'

import VueRouter from 'vue-router'
import {routes} from './router/index'


Vue.prototype.$qs = qs
axios.defaults.timeout = 5000 // 请求超时
axios.defaults.baseURL = '/api/'  // api 即上面 vue.config.js 中配置的地址

Vue.use(VueAxios, axios)
Vue.use(VueRouter);
Vue.config.productionTip = false


const router = new VueRouter({
  routes:routes
})




new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')




